﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Win.master" AutoEventWireup="true" CodeBehind="ProductListByCateForTerminal.aspx.cs" Inherits="Runda.EShop.Web.Customer.ProductListByCateForTerminal" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server"> 
    <script src="../Content/Business/Order.js" type="text/javascript"></script> 
  
<style type="text/css">
    .dialog
    {
        background: url("../images/btn/dialog_bg.jpg") no-repeat;
        padding: 10px 20px;
        left: 100px;
        top: 300px;
        width: 295px;
        height: 95px;
        font-size: 12px;
        float: left;
        position: absolute;
        z-index: 50;
    }
    .dialog p
    {
        margin: 0px;
        padding: 0px;
        width: 265px;
        height: 35px;
    }
    .dialog #txtOrderCount
    {
        border: 1px solid rgb(204, 204, 204);
        width: 140px;
        height: 25px;
    }
    
    .d_ok
    {
        margin-right: 5px;
    }
    .d_cacel
    {
        margin-right: 20px;
    }
    .selectedItem
    {
        background-color: #FFFFFF;
        color: #81BEF7;
        font-family: MS Shell Dlg,tahoma;
        font-size: 12px;
    }
    .selectedItem A
    {
        font-size: 10pt;
        color: #81BEF7;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight: bold;
    }
    .selectedItem A:link
    {
        font-size: 10pt;
        color: #81BEF7;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight:bolder;
    }
    .selectedItem A:visited
    {
        font-size: 10pt;
        color: #FFFFF0;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight: bold;
        background-color: #395D84;
        padding-top: 4px;
        padding-right: 2px;
        padding-bottom: 4px;
        padding-left: 3px;
        height: 20px;
        width: 62px;
        text-align: center;
    }
    .selectedItem A:active
    {
        font-size: 10pt;
        color: #CCCCCC;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight: bold;
    }
    .selectedItem A:hover
    {
        font-size: 10pt;
        color: #FFFFFF;
        font-family: "MS Shell Dlg" , tahoma;
        text-decoration: none;
        font-weight: bold;
        background-color: #0086C6;
        padding-top: 4px;
        padding-right: 3px;
        padding-bottom: 4px;
        padding-left: 3px;
        height: 20px;
        width: 62px;
    }
</style>
<script type="text/javascript">

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="chpMain" runat="server">
    <div style="display: none;" id="dialog" class="dialog">
        <input id="txtProductID" name="txtProductID" type="hidden" />
        <p>请输入订购数量：<input id="txtOrderCount" onkeyup=" return myKeyDown('txtOrderCount')" name="txtOrderCount" type="text"/></p>
       <table>
        <tr>
        <td style="width:90px"><span style="color: red; font-size: 12px;" id="txtMessage"></span></td>
        <td><input class="d_ok" onclick="return Ok();" name="ctl03" src="../images/btn/dialog_ok.jpg" type="image"/></td>
        <td><input class="d_cacel" onclick="return Cancel();" src="../images/btn/dialog_cancel.jpg" type="image"/></td>
        </tr>
        </table>            
        
       </div>
     <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" /></span>
        <span style="text-align:right">
            <asp:Label ID="lblInstrument" runat="server" Text="仪器"></asp:Label> &nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/Images/ico/del15x15.jpg" 
             ClientIDMode="Static" Visible="false" onclick="btnDelete_Click"/></span>
    </div>
    
        <div class="clear"></div>  
    <asp:HiddenField ID="hidSelectInstrument" runat="server" />
    <asp:DataList ID="dlFilter" runat="server" CellPadding="2" CellSpacing="5" CssClass="selectedItem"
        RepeatDirection="Horizontal" onitemcommand="dlFilter_ItemCommand" 
        RepeatColumns="5">
    <ItemTemplate>
    <div style="width:150px;margin:4px 0 4px 0;">
        <asp:LinkButton ID="lnkbtnInstrument"  runat="server" CommandName="Instrument" CommandArgument='<%# Eval("ProductID") %>' ><%# Eval("ProductName") %></asp:LinkButton>
        </div>
    </ItemTemplate>
    </asp:DataList>

    <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />
        <asp:Label ID="lblTrademark" runat="server" Text="品牌"></asp:Label> &nbsp;&nbsp;&nbsp;
        <asp:ImageButton ID="btnDelete1" runat="server" ImageUrl="~/Images/ico/del15x15.jpg" 
             ClientIDMode="Static" Visible="false" onclick="btnDelete1_Click"/>
        </span>
    </div>
        <div class="clear"></div>  
    <asp:HiddenField ID="hidSelectTrademark" runat="server" />
    <asp:DataList ID="dlFilter1" runat="server" CellPadding="2" CellSpacing="5" CssClass="selectedItem" 
        RepeatDirection="Horizontal" onitemcommand="dlFilter1_ItemCommand" 
        RepeatColumns="5">
    <ItemTemplate>
    <div style="width:150px;margin:4px 0 4px 0;">
        <asp:LinkButton ID="lnkbtnInstrument"  runat="server" CommandName="Instrument" CommandArgument='<%# Eval("Trademark") %>' ><%# Eval("Trademark")%></asp:LinkButton>
        </div>
    </ItemTemplate>
    </asp:DataList>

    <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />产品列表</span>
    </div>
        <div class="clear"></div>
    <asp:GridView ID="gvProductList" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvProductList_RowDataBound" onrowcommand="gvProductList_RowCommand" GridLines="None">
        <Columns>
            <asp:TemplateField HeaderText="产品编号">
                <ItemTemplate>
                    <asp:HyperLink ID="lnkView" runat="server" Target="_blank" NavigateUrl='<%# "ProductDetail.aspx?ProductID="+Eval("ProductID") %>'><%# Eval("ProductCode") %></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="60px" />
            </asp:TemplateField>
            <asp:BoundField DataField="ProductName" HeaderText="产品名称" ItemStyle-Width="280px" />
            <asp:BoundField DataField="Alias" HeaderText="别名" ItemStyle-Width="80px" />
            <asp:BoundField DataField="Standard" HeaderText="规格" ItemStyle-Width="130px" />
            <asp:BoundField DataField="Trademark" HeaderText="品牌" ItemStyle-Width="60px" />
            <asp:TemplateField HeaderText="操作  ">
                <ItemTemplate>
                    <asp:linkButton ID="btnAdd" runat="server" Width="100px" CommandName="addto" CommandArgument='<%# Eval("ProductID") %>' Text="放入常用试剂" ToolTip="点击此按钮后，当前试剂放入常用试剂列表。" />
                </ItemTemplate> 
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
        ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" PageSize="10"
        NumericButtonCount="10" onpagechanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager>

    <asp:Button ID="btnRefersh" runat="server" Text="刷新" style="display:none;"
        onclick="btnRefersh_Click" />
</asp:Content>
